//
//  RPAppManager.h
//  Rippton2.0
//
//  Created by 胡旭辉 on 2019/7/12.
//  Copyright © 2019 胡旭辉. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RPAppManager : NSObject


SingletonH(RPAppManager)
/// 获取登录的customerId
+ (NSNumber *)getCustomerId;
/// 获取登录的token
+ (NSString *)getToken;
/// 主题色
+ (UIColor *)themColor;
/// 是否登录不返回登录页
+ (BOOL)isLogin;
/// 是否登录并且返回登录页
+ (BOOL)isLogin:(UIViewController *)vc;
// 获取文字的size
+ (CGSize)getTextSizeWithText:(NSString *)text font:(UIFont *)font maxSize:(CGSize)maxSize;
// 获取当前控制器
+ (UIViewController *)currentViewController;
/// 获取用户机型
+(NSString *)getCurrentDeviceModel;
/// 通过路径来获取?参数
+ (NSDictionary *)dictionaryWithUrlString:(NSString *)urlStr;
/// 是否显示无网络页面
+ (BOOL)isShowNetworkView;
/// 保存网络状态
+ (void)updateNetworkStatus:(NSNumber *)status;
/// 清理缓存
+ (void)clearCahceData;
/// 检查相机
+ (BOOL)checkVideoCameraAuthorization;
/// 检查相册
+ (BOOL)checkVideoPhotoAuthorization;
/// 检查麦克风
+ (BOOL)checkVideoMicrophoneAudioAuthorization;
/// md5拼接
+ (NSString *)md5StrWithApi:(NSString *)api;

+ (void)saveUserPlanIdsWithPlans:(NSArray *)plans;

+ (NSArray *)getOwnerPlanIds;

+ (void)deleteUserAllPlans;

+ (void)deleteUserPlanById:(NSString *)id;

+ (NSString *)created_atWithCreateDate:(long)createDate andCurrentDate:(long)currentDate;

+ (UIImage*)imageByCroppingWithImage:(UIImage*)myImage andRect:(CGRect)rect;

+ (NSComparisonResult)compareOnlineVersion:(NSString*)versionOne toVersion:(NSString*)versionTwo;

+ (NSString *)notRounding:(CGFloat)price afterPoint:(int)position;

+ (void)removeLaunchScreenCacheIfNeeded;

+ (UIViewController *)jsd_findVisibleViewController;

+ (void)openUrl:(NSString *)url andConfigInfo:(NSDictionary *)configInfo;



@end
